package cn.wizzer.app.user.modules.models;

import cn.wizzer.framework.base.model.BaseModel;
import lombok.Data;
import org.nutz.dao.entity.annotation.*;
import org.nutz.dao.interceptor.annotation.PrevInsert;
import org.nutz.integration.json4excel.annotation.J4EIgnore;

import java.io.Serializable;

@Data
@Table("banner")
public class Banner extends BaseModel implements Serializable {

    @Column
    @Name
    @Comment("ID")
    @J4EIgnore
    @ColDefine(type = ColType.VARCHAR, width = 32)
    @PrevInsert(uu32 = true)
    private String id;

    @Column
    @Comment("名称")
    @ColDefine(type = ColType.VARCHAR, width = 64)
    private String name;

    @Column
    @Comment("类型，pc||phone")
    @ColDefine(type = ColType.VARCHAR, width = 64)
    private String type;

    @Column
    @Comment("图片")
    @ColDefine(type = ColType.VARCHAR, width = 2000)
    private String picture;


    @Column
    @Comment("跳转")
    @ColDefine(type = ColType.VARCHAR, width = 64)
    private String href;


    @Column
    @Comment("是否禁用0否1是")
    @ColDefine(type = ColType.BOOLEAN)
    private boolean disabled;
}
